var tokenInputsHeight = new Array;
var recalcularAlturaTope = function(elemento) {
  var alturaOriTokenInput = 50;
  var incrementoAltura = 0;
  elemTI = elemento.parent().children(".token-input-list-facebook");
  if (elemTI.height()>alturaOriTokenInput && elemTI.height() > tokenInputsHeight[elemento.prop("id")]) {
    incrementoAltura = elemTI.height() - tokenInputsHeight[elemento.prop("id")] ;
  }
  tokenInputsHeight[elemento.prop("id")] = elemTI.height();
  $("#tope").height($("#tope").height()+incrementoAltura);
}
var registrarAlturaTokenInput = function (elemento){
  elemTI = elemento.parent().children(".token-input-list-facebook");
  tokenInputsHeight[elemento.prop("id")] = elemTI.height();
}
$("#cancelar").live("click", function(event){
  $("#tope").html("");
  $("#tope").slideUp(1);
  event.preventDefault();
  
});
function ImprimirVoucher(id){            
  $("#voucher").dialog({
    width: "448", 
    position: "left top",
    modal: true,
    close: function(){
      $("#cuerpoTotal, #logo, #menu").css("visibility", "visible");
    },
    title: "LLAO LLAO Hotel & Resort - SPA"
  });
  $("#voucher").load("imprimirVoucher.php", {
    id: id
  });
}